import { createAPI, createFormAPI } from '@/utils/request'

export const insertPigSalesRecords = data => createFormAPI('/admin/pigSalesRecords', 'post', data)
export const deletePigSalesRecords = data => createAPI(`/admin/pigSalesRecords/${data.id}`, 'delete', data)
export const updatePigSalesRecords = data => createAPI('/admin/pigSalesRecords', 'put', data)
export const selectPigSalesRecords = data => createAPI('/admin/pigSalesRecords', 'get', data)
export const pigSalesRecordsNum=data =>createAPI('/admin/pigSalesRecordsNum',"get",data)
